package fr.cnam.projetSiw.client.core.mapper;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;

import fr.cnam.projetSiw.client.core.ClientFactory;
import fr.cnam.projetSiw.client.structure.pages.suggest.SuggestGenreActivity;

public class SuggestContentMapper implements ActivityMapper
{

	private ClientFactory clientFactory;

	public SuggestContentMapper(ClientFactory clientFactory)
	{
		this.clientFactory = clientFactory;
	}

	@Override
	public Activity getActivity(Place place)
	{
		return new SuggestGenreActivity(clientFactory);
	}

	public ClientFactory getClientFactory()
	{
		return clientFactory;
	}

}